package sk.tramtatiri;

import java.util.ArrayList;

import org.hibernate.mapping.List;

import sk.tramtatiri.data.dao.interfaces.DietDao;
import sk.tramtatiri.data.dataobjects.Diet;

public class DataInitialiserDiets {

	
	
	
	
	public void setDietDao(DietDao dietDao) {
		this.dietDao = dietDao;
	}

	private DietDao dietDao;
	
	public void dataInit()
	{
//		for(int i = 0; i < 10; i++)
//		{
//    http://www.chudnutie-ako.sk/jedalnicek-na-chudnutie/jedalnicek-na-pondelok/
			Diet diet = new Diet();
			
//			int[] numberOfFoods = {6,3,6,4,8,5,};
//			int[] numberOfMeals = {6,6,6,6,6,6,6};
//			diet.setNumberOfMeals(numberOfMeals);
//			String[] monday = {"Uhorka","Paprika","Paradajka","Syr", "Chlieb","Šunka","Jogurt","Ovsené vločky","Jablko",""};
//			diet.setMonday(monday);
			
			int[] caloriesPerDay = {7017,6881,6814,6090,6411,6201,6660};
			diet.setDescription("7 dňová diéta\n\tPauza medzi jedlami sú 3 hodiny. Za ten čas vypite jeden až 3 poháre čistej vody, alebo slabého ovocného čaju.");
			diet.setDuration(7);
			diet.setName("7 dňová diéta");
			diet.setRating(0);
			diet.setTotalCalories(46074);
			diet.setCaloriesPerDay(caloriesPerDay);
			
			dietDao.save(diet);
//		}
	}
}
